{include file="header.html"}
<div class="title tc ml-30 mr-10">
	<h2>产品查询结果</h2>
</div>
<div class="content px-20">
<form name="myForm" id="myForm" action="/index.php?act=price&st=query_result" method="post">
	<section id="step1">
		<table class="my-10">
		    <tbody>
		        <tr>
		            <td class="pl-20">产品品种</td>
		            <td class="pl-15">{$name}</td>
		        </tr>
		        <tr>
		            <td class="pl-20">产品材质</td>
		            <td class="pl-15">{$marerials}</td>
		        </tr>



                {foreach item=model_one from=$model}
                {if $model_one.select_all == 0}
                <tr>
                    <td class="pl-20">{$model_one.price_name}</td>
                </tr>
                <tr>
                    <td class="pl-20" colspan="2">
                        <div style="border-left: 1px solid #ccc;margin-left: 8px">
                            <table>
                                {foreach item=model_twos from=$model_one.child}
                                <tr>
                                    <td class="pl-20"><div>{$model_twos.price_name}</div></td>
                                    <td class="pl-15">
                                        {$model_twos.result}
                                    </td>
                                </tr>
                                {/foreach}
                            </table>
                        </div>
                    </td>
                </tr>

                {else}
                <tr>
                    <td class="pl-20">{$model_one.price_name}</td>
                    <td class="pl-15">
                        {if $model_one.result}
                            {$model_one.result}
                        {else}
                            {foreach item=model_twos from=$model_one.child}
                            {if $model_twos.result}
                                    {$model_twos.price_name}-{$model_twos.result}
                            {/if}
                            {/foreach}
                        {/if}
                    </td>
                </tr>
                {/if}
                {/foreach}



		        <tr>
		            <td class="pl-20">运输方式</td>
		            <td class="pl-15">{$transport}</td>
		        </tr>
		        <tr>
		            <td class="pl-20">到货地</td>
		            <td class="pl-15">{$address}</td>
		        </tr>
		        <tr>
		            <td class="pl-20">购买数量</td>
		            <td class="pl-15">{$number} 吨</td>
		        </tr>		        
		        <tr>
		            <td class="pl-20">到货单价：</td>
		            <td class="pl-15">
		            	<strong>{$money} 元</strong>
					</td>
		        </tr>
                <tr>
                    <td class="pl-20">到货总价：</td>
                    <td class="pl-15">
                        <strong>{$allmoney} 元</strong>
                    </td>
                </tr>
            </tbody>
		</table>
        <p class="tc mt-30"><span id="btn2" class="btn w-150" style="display:inline-block"> 预提订单 </span></p>
		<p class="tc mt-30"><span id="btn" class="btn w-150" style="display:inline-block"> 继续查询 </span></p>
	</section>
</form>
</div>
<script type="text/javascript">
$(function(){
	$("#btn").on("click",function(){
		window.location = '/index.php?act=price&st=index';
	});
    $("#btn2").on("click",function(){
        window.location = '/index.php?act=order';
    });
});
</script>
{include file="footer.html"}